package com.qq.service.impl;

import com.qq.mapper.CustomerMapper;
import com.qq.model.Customer;
import com.qq.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.Date;
import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {
    @Autowired
    CustomerMapper customerMapper;

    @Override
    public void addCustomer(Customer customer) {
        customerMapper.addCustomer(customer);
    }

    @Override
    public Customer selectCustomer(String idCard) {
        return customerMapper.selectCustomer(idCard);
    }
}
